<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>创建车辆信息</title>
    <link rel="stylesheet" href="<%=basePath%>ext3.4/resources/css/ext-all.css" type="text/css"></link>
<script type="text/javascript" src="<%=basePath%>ext3.4/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="<%=basePath%>ext3.4/ext-all.js"></script>
<script type="text/javascript" src="<%=basePath%>ext3.4/src/locale/ext-lang-zh_CN.js"></script>
<style type="text/css">
	h4{ background:#00afb9; color:#fff; padding-left:15px; line-height:30px; width:490px;}
   	.d_t td{font-size:14px; text-align:left; color:#555; padding-bottom:8px;}
   	.d_t th{font-size:14px; text-align:right; color:#555; padding-bottom:8px;}
	.d_t input{ height:26px;}
	.t_r{padding-left:15px;}
	.btn_1{ width:112px; height:32px; background:url(btn_1.gif) no-repeat 0 0; border:none; font-weight:bold; color:#fff; font-size:14px; margin-top:15px;}
	.btn_1:hover{ background:url(btn_1.gif) no-repeat 0 -33px;}	
	p{text-align:center;}
</style>
<script type="text/javascript">
Ext.onReady(function(){
//离合器形式
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboClutchList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'clutch',
	renderTo:'clutch'
});
//变速器形式与排挡数
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboTransmissionList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'transmission',
	renderTo:'transmission'
});
//传动轴形式与数量
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboShaftList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'shaft',
	renderTo:'shaft'
});
//减速比
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboReductionRatioList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'reductionRatio',
	renderTo:'reductionRatio'
});
//前悬架形式
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboFrontSuspensionList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'frontSuspension',
	renderTo:'frontSuspension'
});
//后悬架形式
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboAfterSuspensionList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'afterSuspension',
	renderTo:'afterSuspension'
});
//轮胎规格
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboTireSizeList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'tireSize',
	renderTo:'tireSize'
});
//备胎架位置及结构形式
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboSpareTireList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'spareTire',
	renderTo:'spareTire'
});
//转向器形式
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboSteeringGearList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'steeringGear',
	renderTo:'steeringGear'
});
//前制动形式
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboBrakeFormBeforeList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'brakeFormBefore',
	renderTo:'brakeFormBefore'
});
//后制动形式
new Ext.form.ComboBox({
	store:new Ext.data.JsonStore({
		url:'carInfo/getComboBrakingAfterList.action',
		fields: ['value'],
		autoLoad:true
	}),
	editable :true,
	mode: 'local',
	displayField:'value',
	valueField:'value',
	triggerAction :'all',
	name:'brakingAfter',
	renderTo:'brakingAfter'
});
})
</script>
  </head>
  <body>
   <h4>添加地盘技术参数</h4>
   <form action="<%=basePath%>carInfo/addChassisInfo.action" method="post">
   <input type="hidden" name="uid" value="<%=request.getAttribute("uid") %>"/>
	<table  class="d_t">
   	<tr> <th>离合器形式:</th><td><div id="clutch"></div></td> <th class="t_r">变速器形式与排挡数:</th><td><div id="transmission"></div></td> </tr>
   	<tr> <th>传动轴形式与数量:</th><td><div id="shaft"></div></td>  <th class="t_r">主传动器:</th><td><input type="text" name="mainTransmission"/></td> </tr>
   	<tr> <th>减速比:</th><td><div id="reductionRatio"></div></td>   <th class="t_r">桥壳:</th><td><input type="text" name="bridgeShell"/></td> </tr>
   	<tr> <th>半轴:</th><td><input type="text" name="halfShaft"/></td>   <th class="t_r">差速器:</th><td><input type="text" name="differential"/></td> </tr>
   	<tr> <th>前悬架形式:</th><td><div id="frontSuspension"></div></td>   <th class="t_r">后悬架形式:</th><td><div id="afterSuspension"></div></td> </tr>
   	<tr> <th>轮胎:</th><td><input type="text" name="tire"/></td>  <th class="t_r">轮胎规格:</th><td><div id="tireSize"></div></td> </tr>
   	<tr> <th>前轮气压:</th><td><input type="text" name="wheelPressure"/></td> <th class="t_r">后轮气压:</th><td><input type="text" name="wheelPressure02"/></td> </tr>
   	<tr> <th>轮刚:</th><td><input type="text" name="rim"/></td>  <th class="t_r">备胎架位置及结构形式:</th><td><div id="spareTire"></div></td> </tr>
   	<tr> <th>转向器形式:</th><td><div id="steeringGear"></div></td>  <th class="t_r">前制动形式:</th><td><div id="brakeFormBefore"></div></td> </tr>
   	<tr> <th>后制动形式:</th><td><div id="brakingAfter"></div></td>  <th></th><td></td> </tr>
   	<tr> <th>备注:</th><td colspan="3"><textarea  name="remark" style=" width:430px;resize: none;"></textarea></td> </tr>
   	 <tr><td colspan="4" style=" text-align:center"><input type="submit" value="提交" class="btn_1"/></td></tr>
   </table>
   </form>
  </body>
</html>
